body {
    height: 2000px;
    margin: 0px;
}

div {
    height: 200px;
    width: 200px;
    background-color: lightblue;
    margin: 20px;
}

div:nth-child(1){
    position:static;
}

div:nth-child(2){
    position: relative;
    left: 50px;
    top: 15px;
}

div:nth-child(3){
    position: absolute;
    background-color: rgba(0, 0, 255, 0.5);
    left: 30px;
    top: 30px;
}

div:nth-child(4){
    position: fixed;
    background-color: rgba(0, 255, 0, 0.5);
    left: 100px;
    top: 250px;
}

div:nth-child(10){
    position: sticky;
    background-color: rgba(255, 0, 0, 0.5);
    bottom: 10px;
}